import request from '@/utils/request'

// 查询接口列表
export function getUserInterInfo(query) {
  return request({
    url: '/jiekou/getUserInterInfo',
    method: 'get',
    params: query
  })
}

// 查询接口列表
export function listJieKou(query) {
  return request({
    url: '/jiekou/list',
    method: 'get',
    params: query
  })
}

// 修改接口统一价格
export function updateJieKou(data) {
  return request({
    url: '/jiekou',
    method: 'put',
    data: data
  })
}

// 修改接口定制价格
export function updateJieKoujg(data) {
  return request({
    url: '/jiekou/updaPrice',
    method: 'get',
    params: data
  })
}

// pdf接口
export function jieKouPDF(name) {
  return request({
    url: `/jiekou/export?name=`+name,
    method: 'get',
    responseType: 'blob'
  })
}

// txt接口
export function jieKoutxt() {
  return request({
    url: `/jiekou/getJMeg`,
    method: 'get',
    responseType: 'blob'
  })
}

// txt接口
export function jieKouExcel(name) {
  return request({
    url: `/jiekou/jieKouExcel?name=`+name,
    method: 'get',
    responseType: 'blob'
  })
}

export function getCount(data) {
  return request({
    url: '/record/getCount',
    method: 'get',
    params: data
  })
}


export function getSMAndInter(query) {
  return request({
    url: '/jiekou/getSMAndInter',
    method: 'get',
    params: query
  })
}


